home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDXPRSV.500 / REBOOT.S < prev    next >
Encoding:
Text File  |  2001-02-09  |  507 b   |  24 lines

  1. * reboot.s
  2. * $Header: reboot.s,v 1.1 86/05/29 12:13:38 dyer Exp $
  3.  
  4.  
  5. *+
  6. *  Reboot the ST.
  7. *
  8. *    Synopsis:        reboot()
  9. *            Fake warm start.
  10. *
  11. *    Discussion:    Must be called from user mode.
  12. *            Never returns; causes the ST to go through
  13. *            the 68000's RESET vector.
  14. *
  15. *-
  16.     .globl    _reboot
  17. _reboot:
  18.     clr.l    -(sp)            ; get supervisor mode from GEMDOS
  19.     move.w    #$20,-(sp)
  20.     trap    #1
  21. ;    clr.l    $420            ; clobber `memvalid'
  22.     move.l    4,-(sp)            ; indirect-jump through 0x000004
  23.     rts                ; (never returns)
  24.